[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NET DELETE record deleted mark in a network environment:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Syntax:
~~~~~~~

  NET DELETE [IN <alias>,[<order>]] ;
  [ [FOR <for>] [WHILE <while>] [NEXT <next>] ;
  [RECORD <rec>] [REST] [ALL] [CONTINUE] [RETURN <expr>]

  NET DELETE [IN <alias>,[<order>]] ;
  [SEEK <key>] [CONTINUE] [RETURN <expr>]

Function:
~~~~~~~~~
It is a network version of clipper command DELETE...,
with following enhancements:
1.Clause IN <alias>,<order>: command DELETE is performed in workarea
  <alias> with active index <order>. After this command may be unlocked
  current record in <alias> workarea. All other settings are unchanged.
  (i.e. RecNo(), set order to..., RLock(), select, ...)

2.Clause SEEK <key>: command DELETE is performed for all this records,
  that will be founded with seek <key> in required workarea.

3.Network enhancement: If command fails, the user is given an Alert about it
  and he is to decide the next step:
        - repeat the failed command
        - continue even if the command failed, and when the CONTINUE clause
          was used
        - break of the program with a question if the user realy wants to
          break the program
4.CONTINUE clause: If set the user has the possibility to continue after
  a network error occured. This can be checked by NetErr(), which is after
  a network error set to true, when also the CONTINUE clause is used.
5.RETURN clause: is to use when is the continue clause used too. If it is
  used and after an failed command user wants to continue, the RETURN false
  command is performed to immediate break of a failed function.

This enhancements are a strong tool for a programmer, but this library has
better capabilities to handle the database in a network environment, see the
objects of Dbf and View classes for a high level network data handle.

Source code is in Object.ch a Object3.prg

See Also: NetDbDelete Dbf View
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson